<template>
  <div class="user">
    <template>
      <el-table :data="users" border style="width: 100%">
        <el-table-column prop="ID" label="序号" width="180"></el-table-column>
        <el-table-column prop="name" label="姓名" width="180"></el-table-column>
        <el-table-column prop="sex" label="性别"></el-table-column>
        <el-table-column prop="phonenum" label="手机号"></el-table-column>
        <el-table-column prop="type" label="学员状态"></el-table-column>
      </el-table>
    </template>
  </div>
</template>

<script>
export default {
  name: "user",
  data() {
    return {
      users: []
    };
  },
  created() {
    this.$axios({
      method: "post",
      url: "/v4/backAdmin/selectschoolchangestudent",
      xsrfCookieName: "csrfToken", // default
      xsrfHeaderName: "x-csrf-token", // 默认的
      data: {
        schoolid: this.$route.params.ID
      }
    })
      .then(data => {
        console.log(data.data.data);
        this.users = data.data.data;
      })
      .catch(err => {
        console.log(err);
      });
  }
};
</script>

<style>
</style>